##############################################################
# CMakeLists.txt for a ROS package within the low-cost-vision
# build system. 
# 
# Created by Pascal Muller <pascalmuller@gmail.com>, 09-02-2012
# 
# 09-02-2012 Initial version
# 
#############################################################

cmake_minimum_required(VERSION 2.4.6)
# Include all rosbuild macros
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

# Initialize ROS package to be in our build system. 
lcv_rospack_init("deltarobotnode" true true)

# Add executables as documented by ROS
rosbuild_add_executable(deltarobot src/main.cpp)

# Add dependencies to our libraries and other ROS packages in the same directory as this one. 
add_dependencies(deltarobot huniplacer)

# Include our libraries, they are all exported in Libraries/LibrariesExport.cmake
include_directories("${LIB_HUNIPLACER_INCLUDE}")

# Link target to our libraries
target_link_libraries(deltarobot huniplacer)

# MUST be called after lcv_rospack_init to clean up after ROSBUILD!
lcv_rospack_end()
